/*
 * @Date: 2021-09-12 19:21:05
 * @Author: Acckno1
 * @LastEditTime: 2021-09-12 19:21:25
 * @Description: 
 */
#include <bits/stdc++.h>
using namespace std;

using LL = long long;
int main() {
    int a, b;
    scanf("%d%d", &a, &b);
    string res = to_string(a + b);
    string ret = "";
    reverse(res.begin(), res.end());
    if (res.back() == '-') {
        int cnt = 0;
        for (int i = 0; i < res.size() - 1; i ++, cnt ++ ) {
            if (cnt == 3) {ret = ret + "," + res[i]; cnt = 0;}
            else {ret += res[i];}
        }
        ret += "-";
    } else {
        int cnt = 0;
        for (int i = 0; i < res.size(); i ++, cnt ++ ) {
            if (cnt == 3) {ret = ret + "," + res[i]; cnt = 0;}
            else {ret += res[i];}
        }
    }
    reverse(ret.begin(), ret.end());
    cout << ret << endl;
    return 0;
}